package leetcode.day_2020_12_14_12_21;

public class Offer_52_1 {
    public static void main(String[] args) {

    }

    public static int maxDepth(TreeNode root) {
        if(root == null){
            return 0;
        }
        return Math.max(maxDepth(root.left)+1, maxDepth(root.right) + 1);
    }
}
